home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 24 / CU Amiga Magazine's Super CD-ROM 24 (1998)(EMAP Images)(GB)(Track 1 of 2)[!][issue 1998-07].iso / CUCD / Utilities / vim-5.1 / src / regexp.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-12-07  |  1.1 KB  |  38 lines

  1. /* vi:set ts=8 sts=4 sw=4:
  2.  * NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE
  3.  *
  4.  * This is NOT the original regular expression code as written by
  5.  * Henry Spencer. This code has been modified specifically for use
  6.  * with the VIM editor, and should not be used apart from compiling
  7.  * VIM. If you want a good regular expression library, get the
  8.  * original code.
  9.  *
  10.  * NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE
  11.  *
  12.  * Definitions etc. for regexp(3) routines.
  13.  */
  14.  
  15. #ifndef _REGEXP_H
  16. #define _REGEXP_H
  17.  
  18. #define NSUBEXP  10
  19. typedef struct
  20. {
  21.     char_u       *startp[NSUBEXP];
  22.     char_u       *endp[NSUBEXP];
  23.     char_u        regstart;    /* Internal use only. */
  24.     char_u        reganch;    /* Internal use only. */
  25.     char_u       *regmust;    /* Internal use only. */
  26.     int            regmlen;    /* Internal use only. */
  27.     char_u        program[1]; /* Unwarranted chumminess with compiler. */
  28. } vim_regexp;
  29.  
  30. /*
  31.  * The first byte of the regexp internal "program" is actually this magic
  32.  * number; the start node begins in the second byte.
  33.  */
  34.  
  35. #define MAGIC    0234
  36.  
  37. #endif    /* _REGEXP_H */
  38.